package com.ruoyi.customer.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 客户信息变更记录业务对象 t_customer_info_change
 *
 * @author ruoyi
 * @date 2023-12-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TCustomerInfoChangeBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 客户ID
     */
    @NotNull(message = "客户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long customerId;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String tel;

    /**
     * 类型
     */
    @NotBlank(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 创建人ID
     */
    @NotNull(message = "创建人ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long createId;

    /**
     * 改变前信息
     */
    @NotBlank(message = "改变前信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String beforeInfo;

    /**
     * 改变后信息
     */
    @NotBlank(message = "改变后信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String afterInfo;

    /**
     * 状态（1正常 0停用）
     */
    @NotBlank(message = "状态（1正常 0停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
